package com.zhaoziqian.model;

/**
 * Created with fabric-cli
 * 作者： zhaoziqian
 * 时间： 2018/5/28  下午11:09
 * 功能：
 */
public class OrdererModel implements NodeModel{

    private String name;
    private String mspid;
    private String url;
    private String serverHostname;
    private String tlsCacerts;

    public OrdererModel() {
    }

    public OrdererModel(String name, String mspid, String url, String serverHostname, String tlsCacerts) {
        this.name = name;
        this.mspid = mspid;
        this.url = url;
        this.serverHostname = serverHostname;
        this.tlsCacerts = tlsCacerts;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMspid() {
        return mspid;
    }

    public void setMspid(String mspid) {
        this.mspid = mspid;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getServerHostname() {
        return serverHostname;
    }

    public void setServerHostname(String serverHostname) {
        this.serverHostname = serverHostname;
    }

    public String getTlsCacerts() {
        return tlsCacerts;
    }

    public void setTlsCacerts(String tlsCacerts) {
        this.tlsCacerts = tlsCacerts;
    }

    @Override
    public String toString() {
        return "OrdererModel{" +
                "name='" + name + '\'' +
                ", mspid='" + mspid + '\'' +
                ", url='" + url + '\'' +
                ", serverHostname='" + serverHostname + '\'' +
                ", tlsCacerts='" + tlsCacerts + '\'' +
                '}';
    }
}
